

#ifndef __BASE64_H__
#define __BASE64_H__

int base64_encode(char *encoded, const unsigned char *string, int len);

/* Do base-64 decoding on a string.  Ignore any non-base64 bytes.
** Return the actual number of bytes generated.  The decoded size will
** be at most 3/4 the size of the encoded, and may be smaller if there
** are padding characters (blanks, newlines).
*/
int base64_decode( const char* str, unsigned char* space, int size );

#endif